home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
AIncludes
/
OSAGeneric.a
< prev
next >
Wrap
Text File
|
1996-05-01
|
4KB
|
146 lines
;
; File: OSAGeneric.a
;
; Contains: AppleScript Generic Component Interfaces.
;
; Version: Technology: AppleScript 1.1
; Release: Universal Interfaces 3.0d3 on Copland DR1
;
; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
;
; Bugs?: If you find a problem with this file, send the file and version
; information (from above) and the problem description to:
;
; Internet: apple.bugs@applelink.apple.com
; AppleLink: APPLE.BUGS
;
;
IF &TYPE('__OSAGENERIC__') = 'UNDEFINED' THEN
__OSAGENERIC__ SET 1
IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
include 'Errors.a'
ENDIF
IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
include 'AppleEvents.a'
ENDIF
IF &TYPE('__OSA__') = 'UNDEFINED' THEN
include 'OSA.a'
ENDIF
IF FOR_SYSTEM7_ONLY THEN
;
; NOTE: This interface defines a "generic scripting component."
; The Generic Scripting Component allows automatic dispatch to a
; specific scripting component that conforms to the OSA interface.
; This component supports OSA, by calling AppleScript or some other
; scripting component. Additionally it provides access to the default
; and the user-prefered scripting component.
;
; Component version this header file describes
kGenericComponentVersion EQU $0100
kGSSSelectGetDefaultScriptingComponent EQU $1001
kGSSSelectSetDefaultScriptingComponent EQU $1002
kGSSSelectGetScriptingComponent EQU $1003
kGSSSelectGetScriptingComponentFromStored EQU $1004
kGSSSelectGenericToRealID EQU $1005
kGSSSelectRealToGenericID EQU $1006
kGSSSelectOutOfRange EQU $1007
; typedef OSType ScriptingComponentSelector
; typedef OSAID GenericID
; get and set the default scripting component
;
; pascal OSAError OSAGetDefaultScriptingComponent(ComponentInstance genericScriptingComponent, ScriptingComponentSelector *scriptingSubType)
;
IF ¨ GENERATINGCFM THEN
Macro
_OSAGetDefaultScriptingComponent
move.l #$00041001,-(sp)
moveq #0,D0
dc.w $A82A
EndM
ELSE
IMPORT_CFM_FUNCTION OSAGetDefaultScriptingComponent
ENDIF
;
; pascal OSAError OSASetDefaultScriptingComponent(ComponentInstance genericScriptingComponent, ScriptingComponentSelector scriptingSubType)
;
IF ¨ GENERATINGCFM THEN
Macro
_OSASetDefaultScriptingComponent
move.l #$00041002,-(sp)
moveq #0,D0
dc.w $A82A
EndM
ELSE
IMPORT_CFM_FUNCTION OSASetDefaultScriptingComponent
ENDIF
; get a scripting component instance from its subtype code
;
; pascal OSAError OSAGetScriptingComponent(ComponentInstance genericScriptingComponent, ScriptingComponentSelector scriptingSubType, ComponentInstance *scriptingInstance)
;
IF ¨ GENERATINGCFM THEN
Macro
_OSAGetScriptingComponent
move.l #$00081003,-(sp)
moveq #0,D0
dc.w $A82A
EndM
ELSE
IMPORT_CFM_FUNCTION OSAGetScriptingComponent
ENDIF
; get a scripting component selector (subType) from a stored script
;
; pascal OSAError OSAGetScriptingComponentFromStored(ComponentInstance genericScriptingComponent, const AEDesc *scriptData, ScriptingComponentSelector *scriptingSubType)
;
IF ¨ GENERATINGCFM THEN
Macro
_OSAGetScriptingComponentFromStored
move.l #$00081004,-(sp)
moveq #0,D0
dc.w $A82A
EndM
ELSE
IMPORT_CFM_FUNCTION OSAGetScriptingComponentFromStored
ENDIF
; get a real component instance and script id from a generic id
;
; pascal OSAError OSAGenericToRealID(ComponentInstance genericScriptingComponent, OSAID *theScriptID, ComponentInstance *theExactComponent)
;
IF ¨ GENERATINGCFM THEN
Macro
_OSAGenericToRealID
move.l #$00081005,-(sp)
moveq #0,D0
dc.w $A82A
EndM
ELSE
IMPORT_CFM_FUNCTION OSAGenericToRealID
ENDIF
; get a generic id from a real component instance and script id
;
; pascal OSAError OSARealToGenericID(ComponentInstance genericScriptingComponent, OSAID *theScriptID, ComponentInstance theExactComponent)
;
IF ¨ GENERATINGCFM THEN
Macro
_OSARealToGenericID
move.l #$00081006,-(sp)
moveq #0,D0
dc.w $A82A
EndM
ELSE
IMPORT_CFM_FUNCTION OSARealToGenericID
ENDIF
ENDIF
ENDIF ; __OSAGENERIC__